#include "RepairPointActivateCommand.h"

RepairPointActivateCommand::RepairPointActivateCommand(RepairPoint* receiver): repairpoint(receiver)
{
}

RepairPointActivateCommand::RepairPointActivateCommand(const RepairPointActivateCommand& rhs): GameCommand(rhs), repairpoint(rhs.repairpoint)
{
}

RepairPointActivateCommand::~RepairPointActivateCommand()
{
}

void RepairPointActivateCommand::Execute()
{
	if (repairpoint)
	{
		repairpoint->Reached();
	}
}

GameCommand* RepairPointActivateCommand::Clone() const
{
	return new RepairPointActivateCommand(*this);
}
